<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
				<li><a class="add" href="admin/dictionary/addPage?parentCode=0" target="dialog"><span>添加组</span></a></li>
				<li><a class="edit" href="admin/dictionary/updatePage?id={sid}" target="dialog" mask="true"><span>修改组</span></a></li>
				<li><a class="delete" href="admin/dictionary/delete?id={sid}" callback="parentAjaxDone" target="ajaxTodo" title="确定要删除吗？"><span>删除组</span></a></li>
		</ul>
	</div>
	<div class="tabs">
		<div class="tabsContent">
			<div>
	
				<div layoutH="40" style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:21px; background:#fff">
				    <ul class="tree treeFolder" id="parentUl">
				    	#for(item : parentList)
							<li target="sid" rel="#(item.id)"><a href="admin/dictionary/searchChild?parentCode=#(item.code)" target="ajax" rel="jbsxBox">#(item.name)</a></li>
				    	#end
				     </ul>
				</div>
				
				<div id="jbsxBox" class="unitBox" style="margin-left:246px;">
				</div>
	
			</div>
			
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
	
</div>

<script>
function parentAjaxDone(json){
	DWZ.ajaxDone(json);
	if (json[DWZ.keys.statusCode] == DWZ.statusCode.ok){
		navTab.reload("admin/dictionary/search");
	}
}
function childAjaxDone(json){
	DWZ.ajaxDone(json);
	if (json[DWZ.keys.statusCode] == DWZ.statusCode.ok){
		if($("#parentCode").val() == "0"){
			navTab.reload("admin/dictionary/search");
		}else{
			$("#searchBtn").click();
		}
		if ("closeCurrent" == json.callbackType) {
			$.pdialog.closeCurrent();
		}
	}
}
</script>
	

